<template>
  <div class="content">
    <div class="content-center">
      <img src="@/assets/img/public/default_page.png" alt />
      <slot>
        <p class="info">{{ text }}</p>
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "DefaultPage",
  props: {
    text: {
      type: String,
      default: "暂无更多内容"
    }
  },
  data() {
    return {};
  }
};
</script>

<style scoped lang="scss">
.content {
  width: 100%;
  background: #fff;
  min-height: 640px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .content-center {
    min-width: 260px;
    min-height: 325px;
    img {
      width: 420px;
      height: 280px;
    }
    .info {
      text-align: center;
      font-size: 26px;
      font-family: Noto Sans S Chinese;
      font-weight: 400;
      color: #999999;
      line-height: 90px;
    }
  }
}
</style>
